package com.a01_2021.thousandstimes.general.service;

import com.a01_2021.thousandstimes.exception.CustomException;
import com.a01_2021.thousandstimes.general.entity.AbilityModel;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author E1xP
 * @since 2021-03-31
 */
public interface IAbilityModelService extends IService<AbilityModel> {

    List<AbilityModel> getAllAbilityModel();

    AbilityModel getFromPostId(long postId) throws CustomException;

    AbilityModel getFromPositionId(long positionId) throws CustomException;

    AbilityModel updateAbilityModel(AbilityModel abilityModel) throws CustomException;

    AbilityModel getByUserId(long userId) throws CustomException;

    AbilityModel getFromMaster(Integer postId);

    void insert(AbilityModel abilityModel);
}
